    <?php $page = basename($_SERVER['PHP_SELF']);?>  
    <fb:tabs>  
        <fb:tab-item href="http://apps.facebook.com/smallsmallworld/MyMap.php" title="My Map" <?php if ($page == 'MyMap.php'):?>selected="true"<?php endif;?>/>  
        <fb:tab-item href="http://apps.facebook.com/smallsmallworld/MyWorld.php" title="My World" <?php if ($page == 'MyWorld.php'):?>selected="true"<?php endif;?>/>  
        <fb:tab-item href="http://apps.facebook.com/smallsmallworld/MyPreferences.php" title="My Preferences" <?php if ($page == 'MyPreferences.php'):?>selected="true"<?php endif;?>/>  
        <fb:tab-item href="http://apps.facebook.com/smallsmallworld/InviteFriends.php" title="Invite Friends" <?php if ($page == 'InviteFriends.php'):?>selected="true"<?php endif;?>/>  
   </fb:tabs>  
